package com.emep.changzhi.analyse.entity.error;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.*;

import java.io.Serializable;

/**
 * @author xy
 * @Description: 工业无组织排放异常表
 * @date 2018/2/26 17:13
 * @version V1.0
 */
@Data
@Table(value = "error_unorganized_industry")
public class UnorganizedIndustry implements Serializable {
    private static final long serialVersionUID = 3270279639741997351L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String  id;
    /**
     * 设备mn
     */
    @Column(value = "mn")
    private String mn;
    /**
     * 数据类型
     */
    @Column(value = "data_type")
    private String dataType;
    /**
     * 污染类型
     */
    @Column(value = "pollute_type")
    private String polluteType;
    /**
     * 行政区划code
     */
    @Column(value = "area_code")
    private String areaCode;
    /**
     * 报文内容
     */
    @Column(value = "content")
    private String content;
    /**
     * 报文时间
     */
    @PrimaryKeyColumn(name = "content_date", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String contentDate;
    /**
     * 创建时间
     */
    @Column(value = "create_date" )
    private String createDate =  String.valueOf(System.currentTimeMillis());
}
